<?php
class AdvAction extends CommonAction {
	
	function index(){
		
		$this->listorder="sort";
        $this->_list();
		$this->display();
	}
	function test(){
		$d=D('Product')->getfield('id,originalCost');
		foreach($d as $k => $v){
			D('Product')->where('id ='.$k)->save(array('originalCost'=>round($v,2)));
		}
	}
}

?>